<!--
 * new page
 * @author: YK
 * @since: 2023-11-29
 * index.vue
-->
<template>
  <div class="common-layout">
    <el-container>
      <el-aside width="auto">
      <nav-side :isCollapse="isCollapse" />
      </el-aside>
      <el-container>
        <el-header>
         <nav-header v-model:isCollapse="isCollapse"  /> 
        </el-header>
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script setup lang="ts">
import { ref, Ref } from "vue";
import NavSide from './navSide/index.vue'
import NavHeader from './navHeader/index.vue'
const isCollapse: Ref<boolean> = ref(false);
</script>

<style scoped lang="scss">
.el-menu-vertical-demo:not(.el-menu--collapse) {
  width: 200px;
  min-height: 400px;
}
.el-header{
  padding:0;
 border-bottom: 1px #eee solid ;

}
</style>
